<!-- search area   -->
<div class="row searchLineWrap">
	<form class="form-horizontal" method="post" action="${cxt!}/platform/messagetemplate/list" id="searchForm">
		<div class="row">
			    <div class="col-md-5">
			      <div class="form-group">
			         <label  class="col-md-4 control-label">${_res["messagetemplate.messagetype"]}</label>
			         <div class="col-md-8">
			            <#dict type="select" name="messageTemplate.f_messagetype" value="${paramMap['messagetemplate.f_messagetype']}" dictCode="MESSAGE_TEMPLATE_TYPE"/>
			         </div>
			       </div>
			    </div>
			    <div class="col-md-2">
			        <div class="form-group">
			          <button type="button" class="btn btn-primary pull-left" onclick="ajaxForm('content','searchForm')">
			          <i class="fa fa-search m-l-sm m-r-xs"></i>${_res["system.search"]}</button>
			        </div>
		        </div>
		    </div>
	  </form>
	</div>
<!-- search area end  -->

<div class="row searchLineWrap">
	<% if(hasPrivilegeUrl("messageTemplateAdd")){ %>
		<p><a href="javascript:void(0);" onClick="ajaxContent('/platform/messagetemplate/add/a');" class="btn btn-primary pull-left">${_res["messagetemplate.add"]}</a><div class="clearfix"></div></p>
	<% } %>
	<table class="table table-bordered table-hover">
	    <thead>
	        <tr>
	            <th>${_res["messagetemplate.messagetype"]}</th>
	            <th>${_res["messagetemplate.content"]}</th>
	            <th>${_res["messagetemplate.contenten"]}</th>
	            <th>${_res["system.operator"]}</th>
	       </tr>
	    </thead>
	    <tbody>
	    	<% for(messagetemplate in splitPage.list){ %>
		      <tr >
		            <td><#dict type="lable" value='${messagetemplate.messagetype!}' dictCode="MESSAGE_TEMPLATE_TYPE"/></td>
		            <td>${messagetemplate.content!}</td>
		            <td>${messagetemplate.contenten!}</td>
		            <td>
		            	<% if(hasPrivilegeUrl("messageTemplateView")){ %>
		               		<button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/platform/messagetemplate/view/${messagetemplate.id!}');">${_res["system.view"]}</button>
		               	<% } %>
		               	<% if(hasPrivilegeUrl("messageTemplateUpdate")){ %>
		               		<button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/platform/messagetemplate/update/e-${messagetemplate.id!}')">${_res["system.edit"]}</button>
		               	<% } %>
		               	<% if(hasPrivilegeUrl("messageTemplateDelete")){ %>
		               		<button type="button" class="btn btn-sm btn-link" onClick="ajaxDelete('/platform/messagetemplate/delete/${messagetemplate.id!}')">${_res["system.delete"]}</button>
		            	<% } %>
		            </td>
		      </tr>
		     <% } %>
	    </tbody>
	</table>
	<div id="splitPageDiv">
		<#page formId="searchForm"  />
	</div>
	<#nav />
</div>		
